<%@ Page Language="VB" MasterPageFile="~/Template.master" AutoEventWireup="false" CodeFile="PasswordRecover.aspx.vb" 
Inherits="PasswordRecover" title="Password Recovery" %>

<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" Runat="Server">
<div class="sectiontitle">Recover your password</div>
<p></p> If you forgot your password, you can use this page to have it sent to you by email.<p></p>
<asp:PasswordRecovery ID="PasswordRecovery1" runat="server">
    <UserNameTemplate>
        <div class="sectionsubtitle">Step 1: enter your username</div>
        <p></p>
        <table cellpadding="2">
            <tr>
                <td width="80" class="fieldname">Username:</td>
                <td width="300">
                    <asp:TextBox ID="Username" runat="server" Width="100%" />
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="valRequireUserName" runat="server"
                    ControlToValidate="UserName" SetFocusOnError="true" Display="Dynamic" ErrorMessage="Username is required."
                    ValidationGroup="PasswordRecovery1">*
                    </asp:RequiredFieldValidator>
                </td>
            </tr>
            <td colspan="3" align="right">
                <asp:Label ID="FailureText" runat="server" SkinID="FeedbackKO" 
                EnableViewState="false" />
                <asp:Button ID="SubmitButton" runat="server" CommandName="submit" Text="Submit" 
                ValidationGroup="PasswordRecovery1" />
            </td>
        </table>
    </UserNameTemplate>
    <QuestionTemplate>
        <div class="sectionsubtitle">Step 2: answer the following question</div>
        <p></p>
        <table cellpadding="2">
            <tr>
                <td width="80" class="fieldname">Username:</td>
                <td width="300">
                    <asp:Literal ID="UserName" runat="server" />
                </td>
                <td></td>
            </tr>
            <tr>
                <td class="fieldname">Question:</td>
                <td><asp:Literal ID="Question" runat="server" /></td>
                <td></td>
            </tr>
            <tr>
                <td class="fieldname">Answer:</td>
                <td><asp:TextBox ID="Answer" runat="Server" Width="100%" />
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="valREquireAnswer" runat="server" ControlToValidate="Answer" 
                    SetFocusOnError="true" Display="dynamic" ErrorMessage="Answer is Required." 
                    ValidationGroup="PasswordRecovery1">*
                    </asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td colspan="3" align="right">
                    <asp:Label ID="FailureText" runat="server" SkinID="FeedbackKO" EnableViewState="false" />
                    <asp:Button ID="SubmitButton" runat="server" CommandName="Submit" 
                    Text="Submit" ValidationGroup="PasswordRecovery1" />
                </td>
            </tr>
        </table>
    </QuestionTemplate>
    <SuccessTemplate>
        <asp:Label runat="server" ID="lblSuccess" SkinID="FeedbackOK" 
        Text="Your password has been sent to you." />
    </SuccessTemplate>

</asp:PasswordRecovery>
</asp:Content>


